<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/yuanfa_pro_info/yuanfa_pro_info.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/yuanfa_pro_info/yuanfa_pro_info.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "yuanfa_pro_info",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "三地原发代码统计",
                name: "yuanfa_pro_info/yuanfa_pro_info",
                newTabEdit: false,
                url: "/yuanfa_pro_info/",
                sortName: "Id"
            });
            const editFormFields = ref({"YuanFaProName":"","InStoreQty":"","OnlineProQty":"","Remarks":""});
            const editFormOptions = ref([[{"title":"原发产品代码","field":"YuanFaProName","disabled":true},
                               {"title":"在库数量","field":"InStoreQty","disabled":true}],
                              [{"title":"在线数量","field":"OnlineProQty","disabled":true}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"YuanFaProName",title:"原发产品代码",type:"string",width:150,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"MPStore",title:"毛坯在库",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"MPOnline",title:"毛坯在线",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"HPStore",title:"黑片在库",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"HPOnline",title:"黑片在线",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"BPStore",title:"白片在库",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"BPOnline",title:"白片在线",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"CPStore",title:"成品在库",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"CPOnline",title:"成品在线",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"InStoreQty",title:"在库数量",type:"string",width:150,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"OnlineProQty",title:"在线数量",type:"string",width:150,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"}]);
            const detail = ref(  {
                    cnName: "详细信息",
                    table: "yuanfa_pro_info_fen",
                    columns: [{field:"FactoryName",title:"工厂名称",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"PerGX",title:"工序",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"ProName",title:"产品代码",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"PartnerBlueprintNo",title:"客户图纸号",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"YuanFaProName",title:"原发产品代码",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"InStoreQty",title:"在库数量",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"OnlineProQty",title:"在线数量",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,edit:{type:"textarea"},showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"}],
                    sortName: "Id",
                    key: "Id"
                                            });
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
